﻿using HeadFirst._01.duck_02.Interfaces;
using System;
using System.Collections.Generic;
using System.Text;

namespace HeadFirst._01.duck_02.Classes
{
    public abstract class Duck
    {
        public FlyBehavior flyBehavior;
        public QuackBehavior quackBehavior;
        public void performQuack()
        {

            quackBehavior.quack();
        }
        public void performFly()
        {

            flyBehavior.fly();
        }

        public void SwiM()
        {
            Console.WriteLine("All ducks float,Even decoys!");
        }

    }
}
